using System;
using System.Collections.Generic;
using System.Text;

namespace ResDispense
{
    struct SourceStruct
    {
        private int source_id, status, limit, news_num, warning, priority;
        private string url, match_function, filter_function, class_code;

        public SourceStruct(int source_id, string url, string match_function, string filter_function, string class_code, int status, int limit, int news_num, int warning, int priority)
        {
            this.source_id = source_id;
            this.url = url;
            this.match_function = match_function;
            this.filter_function = filter_function;
            this.class_code = class_code;
            this.status = status;
            this.limit = limit;
            this.news_num = news_num;
            this.warning = warning;
            this.priority = priority;
        }

        public void SetSourceStruct(int source_id, string url, string match_function, string filter_function, string class_code, int status, int limit, int news_num, int warning, int priority)
        {
            this.source_id = source_id;
            this.url = url;
            this.match_function = match_function;
            this.filter_function = filter_function;
            this.class_code = class_code;
            this.status = status;
            this.limit = limit;
            this.news_num = news_num;
            this.warning = warning;
            this.priority = priority;
        }

        public int GetSourceID()
        {
            return this.source_id;
        }

        public string GetUrl()
        {
            return this.url;
        }

        public string GetMatchFunction()
        {
            return this.match_function;
        }

        public string GetFilterFunction()
        {
            return this.filter_function;
        }

        public string GetClassCode()
        {
            return this.class_code;
        }

        public int GetStatus()
        {
            return this.status;
        }

        public int GetLimit()
        {
            return this.limit;
        }

        public int GetNewsNum()
        {
            return this.news_num;
        }

        public int GetWarning()
        {
            return this.warning;
        }

        public int GetPriority()
        {
            return this.priority;
        }
    }
}
